#include "smallhistory.h"
#include "ui_smallhistory.h"

smallhistory::smallhistory(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::smallhistory)
{
    ui->setupUi(this);
}

smallhistory::~smallhistory()
{
    delete ui;
}

void smallhistory::init(QString image, QString author, QString time, QString sign)
{
    ui->image->setPixmap(image);
    ui->author->setText(author);
    ui->time->setText(time);
    ui->sign->setText(sign);
}
